package org.example.service;

import org.example.dao.BookDao;
import org.example.dao.OrderDao;
import org.example.dao.UserDao;

public class BookDaoServiceImpl implements BookDaoService{
    private UserDao userDao;
    private OrderDao orderDao;
    private BookDao bookDao;

    public void setBookDao(BookDao bookDao) {
        this.bookDao = bookDao;
    }
    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    public void setOrderDao(OrderDao orderDao) {
        this.orderDao = orderDao;
    }

    public void save() {
        userDao.save();
        orderDao.save();
        bookDao.save();
    }
}
